#!/usr/local/bin/ruby

print "Content-Type: text/html\n"
print "\n"
print "front page\n"

require "mysql"

print "loaded\n"

my = Mysql::new("mysql6.naid.jp", "code4", "SIzCxpVgpQ", "code4")

print "conneced\n"

res = my.query("select * from check_site")
res.each do |row|
  print row[0]
  print row[1]
end
